package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@TableName("ap_collection")
public class ApArticleCollection implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 当前用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 文章id
     */
    @TableField("article_id")
    private Long articleId;

    /**
     * 收藏类型 0文章  1动态
     */
    @TableField("type")
    private Short type;

    /**
     * 发布时间
     */
    @TableField("published_time")
    private Date publishedTime;

    /**
     * 是否收藏  0收藏   1取消收藏
     */
    @TableField("operation")
    private Short operation;

}
